<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 衰草寒烟
  Date: 2016/10/28
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@include file="../../inc/top.jsp"%>
<style>
    .modal-body p{
        font-size: large;
    }
    .col-sm-2{
        padding: 0px;
    }
</style>

<link rel="stylesheet" href="<%=ctxpath%>/static/jstree/dist/themes/default/style.min.css" />
<script src="<%=ctxpath%>/static/jstree/dist/jstree.min.js"></script>

<br/>
<div class="container">
    <div class="row">
        <table class="table table-bordered">
            <tr>
                <td width="20%" style="height: 800px">
                    <div class="form-inline">
                        <%--<a class="btn btn-success" id="add">添加</a>--%>
                    </div><br/>
                    <div id="jstree_demo_div"></div>
                </td>
                <td>
                    这里展示---图
                </td>
            </tr>
        </table>
        <div class="modal fade" id="modal-6" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <br/><br/>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h2 class="modal-title" id="title"></h2>
                    </div>

                    <div class="modal-body text-left">
                        <p id="frist"></p>
                    </div>
                    <div class="modal-footer text-center">
                        <button type="button" class="btn btn-info" data-dismiss="modal">确定</button>
                    </div>

                </div>
            </div>
        </div>
        <div class="modal fade" id="modal-7" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <br/><br/>
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h2 class="modal-title">资产添加</h2>
                    </div>
                    <div class="modal-body text-left" style="margin-left: 5%">
                        <form class="form" name="fr1" id="fr1">

                        </form>
                    </div>
                    <div class="modal-footer text-center">
                        <button type="button" class="btn btn-info" id="tianjia">添加</button>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var _path="<%=ctxpath%>";
    jiazai=function (){
        jQuery('#jstree_demo_div').jstree({
            'core' : {
                'multiple' : false,
                'data' :{
                    dataType : "json",//类型为json
                    async : true,//动态操作
                    url : _path+"/asset/getjson.do"    //此页面返回以json标准格式的json数据串
                },
                "plugins" : [ "search","contextmenu"],

            }
        });
    }
    jiazai();
</script>
<script src="<%=ctxpath%>/static/list.js"></script>
<%@include file="../../inc/bottom.jsp"%>
